package com.bole.dao;

import com.bole.pojo.TbCarSpecDetailsDo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

import javax.transaction.Transactional;
import java.util.List;

public interface CarSpecDetailsDao  extends JpaRepository<TbCarSpecDetailsDo,Long> {
    @Transactional
    @Modifying
    @Query("delete from  TbCarSpecDetailsDo d where  d.id in (:ides)")
    void deleteBatch(List<Long> ides);

    List<TbCarSpecDetailsDo> findAllBySpecId(Long specId);
}
